package edu.gdkm.account;

public class AccountTest2 {
    public static void main(String[] args) {
        Account account1 = new Account();
        account1.setBankNumber("12345678901112");
        account1.setName("张三");
        account1.setPassword("123456");
        account1.setIdNumber("44010120000101001X");
        account1.setBalance(10000);

        Account account2 = new Account();
        account2.setBankNumber("12345678901113");
        account2.setName("李四");
        account2.setPassword("123456");
        account2.setIdNumber("44010120010831001X");
        account2.setBalance(20000);

        account1.display();
        account2.display();
        System.out.println(account1.transfer(account2, 20000));
        account1.display();
        account2.display();
    }
}
